import request from './request'

// 请求banner
export const ApiGetBanner = () => request.get('/banner?type=2')
// 推荐歌单
export const ApiGetPersonalized = () => request.get('/personalized?limit=6')
// 最新专辑
export const ApiGetNewest = () => request.get('/album/newest')
// 推荐最新音乐
export const ApiGetNewSong = () => request.get('/personalized/newsong')
// 歌单详情
export const ApiGetDetail = (params) => request.get('/playlist/detail', {
  params
})
// 专辑内容
export const ApiGetAlbum = (params) => request.get('/album', {
  params
})
// 获取歌曲详情
export const ApiGetSongDetail = (params) => request.get('/song/detail', {
  params
})
// 获取歌词
export const ApiGetLyric = (params) => request.get('/lyric', {
  params
})
// 获取歌曲播放url
export const ApiGetSongUrl = (params) => request.get('/song/url', {
  params
})
